package com.smxy.daydayup.util.list;

import java.util.Arrays;
import java.util.List;

/**
 * @team daydayup
 * @time 2021-12-13 22:58
 */

// 题目工具类
public class QuestionUtil {

    public static String resolveList(List<String> record){
        if(record==null){
            return null;
        }
        StringBuilder sb = new StringBuilder();
        for (String s : record) {
            sb.append(s);
            sb.append("#");
        }
        return sb.toString();
    }

    public static List<String> resolveString(String record){
        if(record==null){
            return null;
        }
        String[] strArray = record.split("#");
        List<String> list = Arrays.asList(strArray);
        return list;
    }
}
